home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-04-29 | 4.2 KB | 166 lines |
- /**
- *
- * You can add code anywhere in this file - except in the areas that are
- * written by the editor. You should not change the relative ordering of
- * the code.
- *
- * You can remove this comment block or replace it with another.
- *
- * @see
- * @version
- * @author
- */
-
- import java.awt.*;
- import java.awt.event.*;
- import java.beans.*;
- import java.io.*;
- import java.net.*;
- import java.util.*;
- import com.supercede.forms.*;
-
- public class AboutDlg extends SuperCedeDialog implements Serializable
- {
-
- void aboutDlgPreInit()
- {
- // You can add code anywhere in this method.
- // This method is called PRIOR to form initialization.
- // NOTE: The form has NOT been initialized yet. Do not modify the form itself in this method.
- }
-
- void aboutDlgPostInit()
- {
- // You can add code anywhere in this method.
- // This method is called AFTER form initialization.
- }
-
- public boolean aboutDlgWindowClosing(WindowEvent arg0)
- {
- // Put event handler code here. Return false for normal processing, true to override
-
- return false;
- }
-
- public boolean aboutDlgWindowClosed(WindowEvent arg0)
- {
- // Put event handler code here. Return false for normal processing, true to override
-
- return false;
- }
-
- public void button1MouseClicked(MouseEvent arg0)
- {
- setVisible(false);
- dispose();
- }
-
- // SuperCede Begin 2.0 Form Members
- // Do not remove the Begin and End markers.
- // The editor will rewrite the contents of this section each time the form is saved.
-
- // References to Beans within the Form.
-
- Button button1;
- Label label1;
-
- private void SuperCedeConstructor() throws IOException, ClassNotFoundException, ClassCastException, SuperCedeInvalidStateException
- {
- // Construct the actual connectors to give to our base class.
-
- Vector connectors = new Vector(3);
- connectors.addElement(new AboutDlgWindowClosingConnector0(this));
- connectors.addElement(new AboutDlgWindowClosedConnector1(this));
- connectors.addElement(new AboutDlgEventConnector2(this));
-
- super.initializeThis(connectors);
-
- // Make references to Beans within the Form.
-
- int i = 0;
-
- button1 = (Button) getComponent(i++);
- label1 = (Label) getComponent(i++);
- }
-
- public AboutDlg(Frame parent) throws IOException, ClassNotFoundException, ClassCastException, SuperCedeInvalidStateException
- {
- super(parent);
-
- aboutDlgPreInit();
- SuperCedeConstructor();
- aboutDlgPostInit();
- }
-
- public void SuperCedeWindowClosing(WindowEvent arg0)
- {
- if (aboutDlgWindowClosing(arg0) == false)
- {
- dispose();
- }
- }
-
- public void SuperCedeWindowClosed(WindowEvent arg0)
- {
- aboutDlgWindowClosed(arg0);
- }
-
- // SuperCede End 2.0 Form Members
- }
-
- // SuperCede Begin 2.0 Form Connectors
- // Do not remove the Begin and End markers.
- // The editor will rewrite the contents of this section each time the form is saved.
- // Connections for AboutDlg:
- // AboutDlgWindowClosingConnector0: from AboutDlg.windowClosing to AboutDlg.SuperCedeWindowClosing
- // AboutDlgWindowClosedConnector1: from AboutDlg.windowClosed to AboutDlg.SuperCedeWindowClosed
- // AboutDlgEventConnector2: from button1.mouseClicked to AboutDlg.button1MouseClicked
-
- final class AboutDlgWindowClosingConnector0 extends WindowAdapter implements SuperCedeConnector, Serializable
- {
- private AboutDlg target;
-
- public AboutDlgWindowClosingConnector0(AboutDlg target)
- {
- this.target = target;
- }
-
- public void windowClosing(WindowEvent arg0)
- {
- target.SuperCedeWindowClosing(arg0);
- }
- }
-
- final class AboutDlgWindowClosedConnector1 extends WindowAdapter implements SuperCedeConnector, Serializable
- {
- private AboutDlg target;
-
- public AboutDlgWindowClosedConnector1(AboutDlg target)
- {
- this.target = target;
- }
-
- public void windowClosed(WindowEvent arg0)
- {
- target.SuperCedeWindowClosed(arg0);
- }
- }
-
- final class AboutDlgEventConnector2 extends MouseAdapter implements SuperCedeConnector, Serializable
- {
- private AboutDlg target;
-
- public AboutDlgEventConnector2(AboutDlg target)
- {
- this.target = target;
- }
-
- public void mouseClicked(MouseEvent arg0)
- {
- target.button1MouseClicked(arg0);
- }
- }
-
- // The following line must be the last line in the file.
- // SuperCede End 2.0 Form Connectors
-